﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Buggy.Web
{
	// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IBuggyService" in both code and config file together.
	[ServiceContract]
	public interface IBuggyService
	{
		[OperationContract]
		string Test(string input);

		[OperationContract]
		LoginStatusEnum Login(string login, string password);

		[OperationContract]
		LoginStatusEnum Logout();

		[OperationContract]
		bool IsAuthenticated();

		[OperationContract]
		List<UserInfo> GetRelatedUsersByBug(int bugId);

		[OperationContract]
		bool CreateBug(int categoryId, string name, string description);

        [OperationContract]
        void AddUserToBug(string username, int bugid);

        [OperationContract]
        void RemoveUserFromBug(string username, int bugid);
	}
}
